package struct.adapter.objectAdapter;

/**
 * Created by hmily on 2017/9/6.
 */
public class wrapper implements targetable {

    private source source;

    public wrapper(source source){
        this.source = source;
    }

    @Override
    public void sayNihao() {
        System.out.println("nihao ya ");
    }

    @Override
    public void sayHello() {
        this.source.sayHello();
    }
}
